home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 February / macformat-047.iso / Demos / Simpsons Cartoon Studio™ Demo / Simpsons / Support / dlogdata / save.Dxr / 00001.ls next >
Encoding:
Text File  |  1996-08-16  |  761 b   |  32 lines

  1. global theSaveDialog, saveDialogBox
  2.  
  3. on startMovie
  4.   set the exitLock to 1
  5.   set the modal of saveDialogBox to 1
  6.   set theSaveDialog to birth(script "save dialog box parent")
  7. end
  8.  
  9. on hiliteButton whichSprite
  10.   set hilit to 1
  11.   set theCastNum to the castNum of sprite whichSprite
  12.   set the castNum of sprite whichSprite to theCastNum + 1
  13.   updateStage()
  14.   repeat while the mouseDown
  15.     if rollOver(whichSprite) then
  16.       set the castNum of sprite whichSprite to theCastNum + 1
  17.       set hilit to 1
  18.     else
  19.       set the castNum of sprite whichSprite to theCastNum
  20.       set hilit to 0
  21.     end if
  22.     updateStage()
  23.   end repeat
  24.   set the castNum of sprite whichSprite to theCastNum
  25.   updateStage()
  26.   if hilit then
  27.     return 1
  28.   else
  29.     return 0
  30.   end if
  31. end
  32.